
import datetime
import time  # 引入time模块

ticks = time.time()
print ("当前时间戳为:", ticks)

naw = datetime.datetime.now()
print(naw)
print(naw.weekday())


localtime = time.localtime(time.time())
print ("本地时间为 :", localtime)
print ("今天是周 :", int(localtime[6])+1)